
global.rasa_endpoint =  "https://51jiqiren.cn:5005";
global.jwtsecret     =  "abcd";


const express  = require("express");
const routes   = require('./routes/index');
const logger   = require('./util/logger');
const bodyParser = require("body-parser");
const request    = require('request');


const app = express();


app.use('/', express.static('web/src/'));
app.use('/scripts', express.static('node_modules/'));

app.use(
  bodyParser.urlencoded({
    parameterLimit: 10000,
    limit: '2mb',
    extended: true
  })
);
app.use(bodyParser.json({ limit: '2mb' }));




app.use('/api/v2/',  routes);

const server = require('http').createServer(app);

const listener = server.listen(3000);

logger.winston.info("hello world http://localhost:3000");